import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false


// 判断开发环境
import url from '@/common/js/config.js'
import api from '@/common/js/index.js'
import request from '@/common/js/request.js'
// 挂载到原型链上
Vue.prototype.$url = url
Vue.prototype.$api = api

// 全局引入加载组件
import pageHeader from './components/header/page-header.vue'
Vue.component('page-header',pageHeader)

// 全局图片路径
Vue.prototype.imgPath = 'https://www.fourleafclover.club/'
Vue.prototype.msg =  function (params) {  
	uni.showToast({
		title:params,
		icon:'none'
	});
}; 


App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
